#include "poorrichard12.h"
#include <nds.h>

using namespace WoopsiUI;

static const u16 PoorRichard12_glyphdata[539] = {
/* '!' */	0xFE80,
/* '"' */	0xB680,0x0000,0x0000,
/* '#' */	0x0902,0x47FC,0x4812,0x3FE2,0x4090,0x2400,0x0000,0x0000,0x0000,0x0000,
/* '$' */	0x11E9,0xA450,0xE165,0xD5E1,0x0000,0x0000,
/* '%' */	0x008F,0xE224,0x4508,0xC0EB,0x8288,0x5112,0x2238,0x8000,0x0000,0x0000,0x0000,
/* '&' */	0x7C04,0x84C0,0xA3E8,0xC124,0x2482,0x3038,0x0000,0x0000,0x0000,0x0000,0x0000,
/* ''' */	0xE000,
/* '(' */	0x2949,0x2489,0x1000,
/* ')' */	0x8912,0x4929,0x4000,
/* '*' */	0x4B80,0x0000,0x0000,
/* '+' */	0x0008,0x4F90,0x8400,0x0000,0x0000,
/* ',' */	0x00C0,
/* '-' */	0x0000,0x0001,0xF000,0x0000,0x0000,
/* '.' */	0x0080,
/* '/' */	0x0102,0x0204,0x0808,0x1010,0x2040,0x4080,0x0000,0x0000,
/* '0' */	0x3128,0x6186,0x1852,0x3000,0x0000,0x0000,
/* '1' */	0x5924,0x92E0,0x0000,
/* '2' */	0x7D06,0x0C16,0x410C,0x227C,0x0000,0x0000,0x0000,
/* '3' */	0x7C90,0x40E0,0x2040,0xC2F8,0x0000,0x0000,0x0000,
/* '4' */	0x0830,0xA144,0x9FC2,0x041C,0x0000,0x0000,0x0000,
/* '5' */	0x7881,0xE220,0x2040,0xC278,0x0000,0x0000,0x0000,
/* '6' */	0x790B,0xA186,0x1852,0x3000,0x0000,0x0000,
/* '7' */	0xFE21,0x0410,0x8208,0x3000,0x0000,0x0000,
/* '8' */	0x3124,0x8C5A,0x1861,0x7800,0x0000,0x0000,
/* '9' */	0x7128,0x6186,0x5742,0x7800,0x0000,0x0000,
/* ':' */	0x0480,
/* ';' */	0x04C0,
/* '<' */	0x0000,0x0333,0x0207,0x0000,0x0000,0x0000,
/* '=' */	0x0000,0x3F00,0x0FC0,0x0000,0x0000,0x0000,
/* '>' */	0x0000,0x3030,0x3138,0x0000,0x0000,0x0000,
/* '?' */	0x7463,0x9191,0x0040,0x0000,0x0000,
/* '@' */	0x1F18,0x24E6,0x49A2,0x6899,0xD900,0x3F00,0x0000,0x0000,0x0000,0x0000,
/* 'A' */	0x0804,0x0702,0x8261,0x1178,0x82E3,0x8000,0x0000,0x0000,0x0000,
/* 'B' */	0xFC42,0x427C,0x4341,0x4143,0xFE00,0x0000,0x0000,0x0000,
/* 'C' */	0x1E63,0xC180,0x8080,0x4041,0x3E00,0x0000,0x0000,0x0000,
/* 'D' */	0xF846,0x4341,0x4141,0x4142,0xFC00,0x0000,0x0000,0x0000,
/* 'E' */	0xF924,0x1E41,0x0411,0xFC00,0x0000,0x0000,
/* 'F' */	0xFD14,0x1E41,0x0410,0xE000,0x0000,0x0000,
/* 'G' */	0x1C63,0x4180,0x8087,0x4161,0x3E00,0x0000,0x0000,0x0000,
/* 'H' */	0xE3A0,0x904B,0xE412,0x0904,0x82E3,0x8000,0x0000,0x0000,0x0000,
/* 'I' */	0xE924,0x92E0,0x0000,
/* 'J' */	0x3884,0x2108,0x42E0,0x0000,0x0000,
/* 'K' */	0xEE44,0x4850,0x7848,0x4446,0xE300,0x0000,0x0000,0x0000,
/* 'L' */	0xE104,0x1041,0x0411,0xFC00,0x0000,0x0000,
/* 'M' */	0xC0D8,0x2639,0x4A54,0x9324,0x8902,0xE1C0,0x0000,0x0000,0x0000,0x0000,
/* 'N' */	0xC762,0x6252,0x4A4A,0x4646,0xE200,0x0000,0x0000,0x0000,
/* 'O' */	0x1E18,0x640A,0x0180,0x6014,0x0986,0x1F00,0x0000,0x0000,0x0000,0x0000,
/* 'P' */	0xF914,0x5159,0x0410,0xE000,0x0000,0x0000,
/* 'Q' */	0x1C18,0xC412,0x0280,0xA029,0x915C,0x3E00,0x8010,0x0700,0x0000,0x0000,
/* 'R' */	0xF899,0x1225,0x8A12,0x22E2,0x0000,0x0000,0x0000,
/* 'S' */	0x7C60,0x8306,0x31F0,0x0000,0x0000,
/* 'T' */	0xFD48,0x4210,0x8470,0x0000,0x0000,
/* 'U' */	0xE3A0,0x9048,0x2412,0x0904,0xC63E,0x0000,0x0000,0x0000,0x0000,
/* 'V' */	0xE3A0,0x90C4,0x4220,0xA050,0x1008,0x0000,0x0000,0x0000,0x0000,
/* 'W' */	0xE074,0x2246,0x2264,0x2541,0x5415,0x8088,0x0880,0x0000,0x0000,0x0000,0x0000,0x0000,
/* 'X' */	0xE742,0x2418,0x1818,0x2442,0xE700,0x0000,0x0000,0x0000,
/* 'Y' */	0xEE88,0xA141,0x0204,0x0838,0x0000,0x0000,0x0000,
/* 'Z' */	0xFE21,0x8420,0x8431,0xFC00,0x0000,0x0000,
/* '[' */	0xF249,0x2492,0x7000,
/* '\' */	0x8040,0x4020,0x2010,0x0808,0x0406,0x0203,0x0000,0x0000,
/* ']' */	0xE492,0x4924,0xF000,
/* '^' */	0x00C4,0x9284,0x0000,0x0000,0x0000,0x0000,
/* '_' */	0x0000,0x0000,0x0000,0x0000,0x0007,0xF000,0x0000,
/* '`' */	0x2400,0x0000,
/* 'a' */	0x0000,0x070B,0x52F8,0x0000,0x0000,
/* 'b' */	0xC210,0x8525,0x29F0,0x0000,0x0000,
/* 'c' */	0x0000,0x7988,0x7000,0x0000,
/* 'd' */	0x1820,0x826A,0x28A2,0x7C00,0x0000,0x0000,
/* 'e' */	0x0000,0x69B8,0x7000,0x0000,
/* 'f' */	0x292E,0x92E0,0x0000,
/* 'g' */	0x0001,0x8831,0x249E,0x8618,0x5E00,0x0000,
/* 'h' */	0xC104,0x1079,0x2492,0xEC00,0x0000,0x0000,
/* 'i' */	0x010C,0x92E0,0x0000,
/* 'j' */	0x04D5,0x5600,
/* 'k' */	0xC104,0x105D,0x4716,0xEC00,0x0000,0x0000,
/* 'l' */	0xC924,0x92E0,0x0000,
/* 'm' */	0x0000,0x0000,0x0FF2,0x4924,0x92ED,0x8000,0x0000,0x0000,0x0000,
/* 'n' */	0x0000,0x00F9,0x2492,0xEC00,0x0000,0x0000,
/* 'o' */	0x0000,0x0746,0x3170,0x0000,0x0000,
/* 'p' */	0x0000,0x0DA5,0x2972,0x1100,0x0000,
/* 'q' */	0x0000,0x006E,0x28A2,0x7820,0x8200,0x0000,
/* 'r' */	0x0001,0xE444,0xE000,0x0000,
/* 's' */	0x000F,0x19E0,0x0000,
/* 't' */	0x012E,0x9260,0x0000,
/* 'u' */	0x0000,0x00D9,0x2492,0x7C00,0x0000,0x0000,
/* 'v' */	0x0000,0x00DE,0x2514,0x2000,0x0000,0x0000,
/* 'w' */	0x0000,0x0000,0x93BB,0xAA6C,0x4400,0x0000,0x0000,0x0000,
/* 'x' */	0x0000,0x00DD,0x2312,0xEC00,0x0000,0x0000,
/* 'y' */	0x0000,0x0DA5,0x2968,0x4260,0x0000,
/* 'z' */	0x000E,0x94E0,0x0000,
/* '{' */	0x6AAA,0xA900,
/* '|' */	0xFFF0,
/* '}' */	0x9555,0x5600,
/* '~' */	0x0000,0x0004,0x3663,0x0000,0x0000,0x0000,0x0000,
/* 0x7F */	0xFE18,0x6186,0x1861,0x861F,0xC000,0x0000,
};

static const u16 PoorRichard12_offset[95] = {
    0,    1,    4,   14,   20,   31,   42,   43,   46,   49,   52,   57,   58,   63,   64,   72,
   78,   81,   88,   95,  102,  109,  115,  121,  127,  133,  134,  135,  141,  147,  153,  158,
  168,  177,  185,  193,  201,  207,  213,  221,  230,  233,  238,  246,  252,  262,  270,  280,
  286,  296,  303,  308,  313,  322,  331,  343,  351,  358,  364,  367,  375,  378,  384,  391,
  393,  398,  403,  407,  413,  417,  420,  426,  432,  435,  437,  443,  446,  455,  461,  466,
  471,  477,  481,  484,  487,  493,  499,  507,  513,  518,  521,  523,  524,  526,  533
};

static const u8 PoorRichard12_width[95] = {
 1, 3,10, 6,11,11, 1, 3, 3, 3, 5, 1, 5, 1, 8, 6,
 3, 7, 7, 7, 7, 6, 6, 6, 6, 1, 1, 6, 6, 6, 5,10,
 9, 8, 8, 8, 6, 6, 8, 9, 3, 5, 8, 6,10, 8,10, 6,
10, 7, 5, 5, 9, 9,12, 8, 7, 6, 3, 8, 3, 6, 7, 2,
 5, 5, 4, 6, 4, 3, 6, 6, 3, 2, 6, 3, 9, 6, 5, 5,
 6, 4, 3, 3, 6, 6, 8, 6, 5, 3, 2, 1, 2, 7, 6
};

PoorRichard12::PoorRichard12(u8 fixedWidth) : PackedFont1 (
	33,
	127,
	PoorRichard12_glyphdata,
	PoorRichard12_offset,
	PoorRichard12_width,
	16,
	4,
	8,
	12
) {
	if (fixedWidth) setFontWidth(fixedWidth);
};
